const TagService = require("../service/TagService")

const TagController = {
    getList: async (req, res) => {
        const result = await TagService.getList()
        res.send(result)
    },
    addList:async (req,res) => {
        // console.log(req.body);
        const result = await TagService.addList(req.body)
        res.send(result)
    },
    deleteList:async (req,res) => {
        const result = await TagService.deleteList(req.params.id)
        res.send(result)
    },
    updateList:async(req,res) => {
        const result = await TagService.updateList(req.params.id,req.body)
        res.send(result)
    }
}
module.exports = TagController